package org.bud.rung.bit.cron;

/**
 * @author shaun
 * @date 2024/8/11
 * @instruction
 */
public class CronStep implements CronType {
    private Integer start;
    private Integer step;
    @Override
    public void init(String cron) {
        String[] crons = cron.split("/");
        start = Integer.parseInt(crons[0]);
        step = Integer.parseInt(crons[1]);
    }

    @Override
    public Integer start() {
        return start;
    }

    @Override
    public Integer step() {
        return step;
    }
}
